/**
 * Created by gongxun on 16/12/11.
 */

var GameMainLayer = cc.Layer.extend({
    ctor : function(){
        this._super();
        mo.gameMainLayer = this;
    },

    onEnter : function(){
        this._super();
    },

    onExit : function(){
        mo.gameMainLayer = null;
        this._super();
    },

    setVisible : function(isVisible){
        this._super(isVisible);
        if (isVisible){
            // mo.soundHelper.playMusicGame();
        }else{
            mo.soundHelper.stopMusic();
        }
    },

    getIsRotation : function(){
        return false;
    },

    //返回游戏里面的旋转后坐标
    getTransfromPoint : function(p){
        return p;
    },

    //返回当前是否是旋转状态
    getCurrentIsRotation : function(){
        return false;
    }
});

mo.gameMainLayer = null;